package com.ruoyi.passenger.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户详情-消费记录-新增对象 tb_passenger_consumption_record
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
public class TbPassengerConsumptionRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消费记录ID */
    @Excel(name = "消费记录ID")
    private Long consumptionId;

    /** 支付单号 */
    @Excel(name = "支付单号")
    private String paymentNo;

    /** 关联用户ID */
    @Excel(name = "关联用户ID")
    private Long passengerId;

    /** 事件类型（如订单扣款、费用补偿） */
    @Excel(name = "事件类型", readConverterExp = "如=订单扣款、费用补偿")
    private String eventType;

    /** 充值金额-本金 */
    @Excel(name = "充值金额-本金")
    private BigDecimal principalAmount;

    /** 赠送金额 */
    @Excel(name = "赠送金额")
    private BigDecimal giftAmount;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 消费时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "消费时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date consumptionTime;

    public void setConsumptionId(Long consumptionId) 
    {
        this.consumptionId = consumptionId;
    }

    public Long getConsumptionId() 
    {
        return consumptionId;
    }

    public void setPaymentNo(String paymentNo) 
    {
        this.paymentNo = paymentNo;
    }

    public String getPaymentNo() 
    {
        return paymentNo;
    }

    public void setPassengerId(Long passengerId) 
    {
        this.passengerId = passengerId;
    }

    public Long getPassengerId() 
    {
        return passengerId;
    }

    public void setEventType(String eventType) 
    {
        this.eventType = eventType;
    }

    public String getEventType() 
    {
        return eventType;
    }

    public void setPrincipalAmount(BigDecimal principalAmount) 
    {
        this.principalAmount = principalAmount;
    }

    public BigDecimal getPrincipalAmount() 
    {
        return principalAmount;
    }

    public void setGiftAmount(BigDecimal giftAmount) 
    {
        this.giftAmount = giftAmount;
    }

    public BigDecimal getGiftAmount() 
    {
        return giftAmount;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public void setConsumptionTime(Date consumptionTime) 
    {
        this.consumptionTime = consumptionTime;
    }

    public Date getConsumptionTime() 
    {
        return consumptionTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("consumptionId", getConsumptionId())
            .append("paymentNo", getPaymentNo())
            .append("passengerId", getPassengerId())
            .append("eventType", getEventType())
            .append("principalAmount", getPrincipalAmount())
            .append("giftAmount", getGiftAmount())
            .append("orderNo", getOrderNo())
            .append("consumptionTime", getConsumptionTime())
            .toString();
    }
}
